/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"35D845A3-4CF1-4A6C-8404-6A3CE2EA57EA"}
 */
function modificar(event) {
	databaseManager.setAutoSave(false)
	var $win = application.createWindow('ALTA_ENCARGADO_SUELDO',JSWindow.MODAL_DIALOG)
	if (fecha_pago.getMonth() == application.getServerTimeStamp())
	{
		forms.encargados_dtl.controller.readOnly = false
	}
	else
	{
		forms.encargados_dtl.controller.readOnly = true
	}
	forms.encargados_dtl.controller.show($win)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"38693C45-B86C-4D79-A79C-CF96F9049DAF"}
 */
function nuevo(event) {
	databaseManager.setAutoSave(false)
	var $win = application.createWindow('ALTA_ENCARGADO_SUELDO',JSWindow.MODAL_DIALOG)
	forms.encargados_dtl.controller.readOnly = false
	forms.encargados_dtl.controller.show($win)
}
